﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:CCWP7_CaliburnMicro_Framework="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
    x:Class="CCWP7.CaliburnMicro.BrowserPage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar Opacity="0.6">
            <shell:ApplicationBar.MenuItems>
                <CCWP7_CaliburnMicro_Framework:AppBarMenuItem Message="OpenInInternetExplorer" Text="open in internet explorer..."/>
            </shell:ApplicationBar.MenuItems>
            <CCWP7_CaliburnMicro_Framework:AppBarButton IconUri="/icons/appbar.refresh.rest.png" Message="Refresh" Text="refresh"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#FFCFF09E">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1">
            <phone:WebBrowser 
                Source="{Binding Uri}" 
                NavigationFailed="WebBrowser_NavigationFailed"/>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
